package com.ts.api.module.api.entity.bo;

import com.ts.api.common.constant.api.ApiServiceCodeEnum;
import com.ts.api.module.api.entity.po.ApiKeyPO;
import lombok.Data;

@Data
public class ApiMsgBO {

    /** 请求体 */
    private String body;
    /** 业务编号 */
    private ApiServiceCodeEnum serviceCode;
    /** API渠道实体 */
    private ApiKeyPO apiKeyPO;

    public ApiMsgBO() {
        super();
    }

    public ApiMsgBO(String body, ApiServiceCodeEnum serviceCode, ApiKeyPO apiKeyPO) {
        this.body = body;
        this.serviceCode = serviceCode;
        this.apiKeyPO = apiKeyPO;
    }

    public static ApiMsgBO createBO(String body, ApiServiceCodeEnum apiServiceCodeEnum, ApiKeyPO apiKeyPO) {
        return new ApiMsgBO(body, apiServiceCodeEnum, apiKeyPO);
    }
}
